﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace FRL.DebtChased.WorkflowEditor
{

	/// <summary>
	/// Declaration of PhoneCallNotesWnd class
	/// Window for editing notes to be displayed to collector before call action
	/// </summary>
	public partial class PhoneCallNotesWnd : ChildWindow
	{

		/////////////////////////////////////////////////////////////
		// Attributes

		private string m_strMsg;
		public string Message
		{
			get { return m_strMsg; }
		}

		/////////////////////////////////////////////////////////////
		// Construction

		public PhoneCallNotesWnd(string strMsg)
		{

			// Initialize resources
			InitializeComponent();

			// Set controls
			txtNotes.Text = strMsg;

		}

		/////////////////////////////////////////////////////////////
		// Event handlers

		private void OKButton_Click(object sender, RoutedEventArgs e)
		{

			// Update member variables
			m_strMsg = txtNotes.Text;

			// Close this window
			this.DialogResult = true;

		}

		private void CancelButton_Click(object sender, RoutedEventArgs e)
		{

			// Close this window
			this.DialogResult = false;

		}

	}

}

